package com.cqgc.service;

import com.cqgc.pojo.dto.ShoppingCartDTO.ShoppingCartDTO;
import com.cqgc.pojo.dto.ShoppingCartDTO.ShoppingCartDeleteDTO;
import com.cqgc.pojo.dto.ShoppingCartDTO.ShoppingCartPageDTO;
import com.cqgc.pojo.entity.PageResult;
import com.cqgc.pojo.entity.ShoppingCart;
import com.cqgc.pojo.vo.ShoppingCartVO;
import com.github.pagehelper.Page;

import java.util.List;

public interface ShoppingCartService {

    /**
     * 添加购物车
     * @param shoppingCartDTO
     */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 查看购物车
     * @return
     */
    PageResult list(ShoppingCartPageDTO shoppingCartPageDTO);


    /**
     * 清空购物车商品
     */
    void cleanShoppingCart();

    void deleteByGid(int gid);

    void updateQuantity(ShoppingCartDTO shoppingCartDTO);


    int deleteByGids(ShoppingCartDeleteDTO shoppingCartDeleteDTO);


}
